package com.yansu.cloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;

import com.yansu.cloud.bean.User;
import com.yansu.config.UserConfiguration;

import feign.Param;
import feign.RequestLine;

/**
 * 
 * @author 言肃
 * @email yansu_code@126.com
 * @version 1.0
 * @date Jul 28, 2018 3:12:32 PM
 */
@FeignClient(name = "microservice-provider-user", configuration = UserConfiguration.class, fallback = UserFeignHystrixClientFallBack.class)
public interface UserFeignHystrixClient {

	@RequestLine("GET /simple/{id}")
	public User findById(@Param("id") Long id);

}
